<template>
  <div class="dashboard-container">
    <el-row :gutter="20">
      <el-col :span="14"
        ><div class="grid-content bg-purple">机构概述</div></el-col
      >
      <el-col :span="10"
        ><div class="grid-content bg-purple">今日数据</div></el-col
      >
    </el-row>
    <el-row :gutter="20">
      <el-col :span="14"
        ><div class="grid-content bg-purple">待办任务</div></el-col
      >
      <el-col :span="10"
        ><div class="grid-content bg-purple">执行中任务</div></el-col
      >
    </el-row>
    <el-row :gutter="20">
      <el-col :span="24"
        ><div class="grid-content bg-purple">常用功能</div></el-col
      >
    </el-row>
    <el-row :gutter="20">
      <el-col :span="12"
        ><div class="grid-content bg-purple">线路管理</div></el-col
      >
      <el-col :span="12"
        ><div class="grid-content bg-purple">运输任务</div></el-col
      >
    </el-row>
    <el-row :gutter="20">
      <el-col :span="12"
        ><div class="grid-content bg-purple">订单总量</div></el-col
      >
      <el-col :span="12"
        ><div class="grid-content bg-purple">订单分布</div></el-col
      >
    </el-row>
  </div>
</template>

<script>
import { mapGetters } from "vuex";

export default {
  name: "Dashboard",
  computed: {
    ...mapGetters(["name"]),
  },
};
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
    background-color: #f3f5f9;
    .el-row {
      margin-bottom: 20px;
      &:last-child {
        margin-bottom: 0;
      }
    }
    .el-col {
      border-radius: 4px;
    }
    .bg-purple-dark {
      background: #99a9bf;
    }
    .bg-purple {
      background: #ffffff;
    }
    .bg-purple-light {
      background: #e5e9f2;
    }
    .grid-content {
      height: 300px;
      border-radius: 4px;
      min-height: 36px;
    }
    .row-bg {
      padding: 10px 0;
      background-color: #f9fafc;
    }
  }
}
</style>
